<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ShopCategories extends Model
{
	// use SoftDeletes;
	protected $primaryKey = 'shop_cate_id';
    protected $fillable = ['shop_id', 'name', 'brand', 'description', 'parent_id', 'deleted_at'];

    public function hasChildren()
    {
    	return $this->hasMany('App\ShopCategories', 'parent_id', 'shop_cate_id');
    }
}
